import request from '@/utils/request'

// 查询发票报销列表
export function listInvoiceExpenses(query) {
  return request({
    url: '/business/invoiceExpenses/list',
    method: 'get',
    params: query
  })
}

// 查询发票报销所有列表
export function listAllInvoiceExpenses(query) {
  return request({
    url: '/business/invoiceExpenses/listAll',
    method: 'get',
    params: query
  })
}

// 查询发票报销详细
export function getInvoiceExpenses(id) {
  return request({
    url: '/business/invoiceExpenses/getInfo/' + id,
    method: 'get'
  })
}

// 新增发票报销
export function addInvoiceExpenses(data) {
  return request({
    url: '/business/invoiceExpenses/add',
    method: 'post',
    data: data
  })
}

// 修改发票报销
export function updateInvoiceExpenses(data) {
  return request({
    url: '/business/invoiceExpenses/edit',
    method: 'post',
    data: data
  })
}

// 删除发票报销
export function delInvoiceExpenses(id) {
  return request({
    url: '/business/invoiceExpenses/remove/' + id,
    method: 'get'
  })
}
